Clover coverage report - Enterprise Web Services - 1.0
Coverage timestamp: Mon May 30 2005 17:10:32 CEST
file stats: LOC: 95   Methods: 2
NCLOC: 12   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
AbstractWSCFSOAPHeader.java - 50% 50% 50%
coverage coverage
 1   
 /*
 2   
  * Copyright 2001-2004 The Apache Software Foundation.
 3   
  * 
 4   
  * Licensed under the Apache License, Version 2.0 (the "License");
 5   
  * you may not use this file except in compliance with the License.
 6   
  * You may obtain a copy of the License at
 7   
  * 
 8   
  *      http://www.apache.org/licenses/LICENSE-2.0
 9   
  * 
 10   
  * Unless required by applicable law or agreed to in writing, software
 11   
  * distributed under the License is distributed on an "AS IS" BASIS,
 12   
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13   
  * See the License for the specific language governing permissions and
 14   
  * limitations under the License.
 15   
  */
 16   
 package org.apache.geronimo.ews.ws4j2ee.context.webservices.server;
 17   
 
 18   
 import org.apache.geronimo.ews.ws4j2ee.context.webservices.server.interfaces.WSCFSOAPHeader;
 19   
 
 20   
 /**
 21   
  * This encapsulates the soap header of the handler element. The information about this element can be accessed uaing the interface published.
 22   
  * Basically this is  a Qname
 23   
  */
 24   
 public abstract class AbstractWSCFSOAPHeader extends WSCFElement implements WSCFSOAPHeader {
 25   
 
 26   
     /**
 27   
      * SOAP header namespace
 28   
      */
 29   
     protected String namespaceURI;
 30   
 
 31   
     /**
 32   
      * Soap Header local part
 33   
      */
 34   
     protected String localpart;
 35   
     
 36   
     //////////////////////////////////jaxb interfacing block ///////////////////////////////
 37   
 //    
 38   
 //    protected XsdQNameType jaxbSoapHeader;
 39   
 //    
 40   
 //    public WSCFSOAPHeaderImpl(XsdQNameType jaxbSoapHeader){
 41   
 //        this.jaxbSoapHeader = jaxbSoapHeader;
 42   
 //        
 43   
 //        if(null != jaxbSoapHeader.getValue()){    
 44   
 //            this.localpart = jaxbSoapHeader.getValue().getLocalPart();
 45   
 //            this.namespaceURI = jaxbSoapHeader.getValue().getNamespaceURI();
 46   
 //        }
 47   
 //            
 48   
 //    }
 49   
 //    
 50   
 //    
 51   
 //    ////////////////////////////////////////////////////////////////////////////////////////
 52   
 //    
 53   
 //    /**
 54   
 //     * The constructor. This will get the namespace and the localpart of the SOAP header
 55   
 //     * @param e SOAP header element
 56   
 //     * @throws WSCFException
 57   
 //     */
 58   
 //    public WSCFSOAPHeaderImpl(Element e)throws WSCFException{
 59   
 //        super(e);
 60   
 //        //        extract the namespace URI
 61   
 //          Element element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_NAMESPACE_URI);
 62   
 //          if(null != element){this.namespaceURI = element.getChildNodes().item(0).toString();}
 63   
 //
 64   
 //          //extract the local part
 65   
 //          element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_LOCALPART);
 66   
 //          if(null != element){this.localpart = element.getChildNodes().item(0).toString();}
 67   
 //    }
 68   
     
 69   
     /**
 70   
      * gets the local part of the soap header
 71   
      *
 72   
      * @return local part
 73   
      */
 74  0
     public String getLocalpart() {
 75  0
         return localpart;
 76   
     }
 77   
 
 78   
     /**
 79   
      * Gets teh namespace of the SOAP header
 80   
      *
 81   
      * @return namespace
 82   
      */
 83  2
     public String getNamespaceURI() {
 84  2
         return namespaceURI;
 85   
     }
 86   
 
 87   
 //    /**
 88   
 //     * @return
 89   
 //     */
 90   
 //    public XsdQNameType getJaxbSoapHeader() {
 91   
 //        return jaxbSoapHeader;
 92   
 //    }
 93   
 
 94   
 }
 95